package com.classic.base;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentActivity;
import android.view.WindowManager;

/**
 * Created by hsj on 2017/7/6 0006.
 * email:2881032622@qq.com
 * class: activity 基类
 */

public abstract class UBaseActivity extends FragmentActivity {
    protected abstract int getResourceId();

    protected abstract void initView();

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(getResourceId());
        //全屏
        getWindow().setFlags(WindowManager.LayoutParams. FLAG_FULLSCREEN ,
                WindowManager.LayoutParams. FLAG_FULLSCREEN);
        initView();
    }


    @Override
    protected void onDestroy() {
        super.onDestroy();
    }

}
